/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package part.calendar;

import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;

/**
 *
 * @author shengyi
 */
public class CalDay {
    private Date startTime;
    private TimeZone startTimezone;
    

    public CalDay(){
        if (startTime == null){
            startTime = Calendar.getInstance().getTime();
        }
        if (startTimezone == null){
            startTimezone = Calendar.getInstance().getTimeZone();
        }
    }
    
    public CalDay(Date setTime, TimeZone setTimezone){
        this.startTime = setTime;
        this.startTimezone = setTimezone;
    }
    /**
     * @return the startTime
     */
    public Date getStartTime() {
        return startTime;
    }

    /**
     * @param startTime the startTime to set
     */
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    /**
     * @return the startTimezone
     */
    public TimeZone getStartTimezone() {
        return startTimezone;
    }

    /**
     * @param startTimezone the startTimezone to set
     */
    public void setStartTimezone(TimeZone startTimezone) {
        this.startTimezone = startTimezone;
    }
    
}
